
<!--
 * @Author: cgl
 * @Date: 2023-04-18 15:12:26
 * @LastEditors: cgl
 * @LastEditTime: 2023-07-04 15:19:55
 * @FilePath: \public-health-emergencies-fed:\radiation-hygiene-fe\src\views\slide\components\basicTable.vue
 * @Description: 
 * 
 * Copyright (c) 2023 by cgl/微盛信息产业有限公司, All Rights Reserved. 
-->
<template>
	<div>
		<table style="width: 100%"  border="1" cellspacing="0" cellpadding="0" align="center">
			<tr>
				<td>设备参数</td>
				<td colspan="3">
					额定管电压：<el-input v-model="basicForm.basicInfo.maximumTubeVoltage" style="width: 100px"/>kV；
					额定管电流：<el-input v-model="basicForm.basicInfo.maximumTubeCurrent" style="width: 100px"/>mA；
					管球数：<el-input v-model="basicForm.basicInfo.tubularBulbNumber" style="width: 100px"/>个；
					接收器：<el-input v-model="basicForm.basicInfo.receiverNumber" style="width: 100px"/>个；
				</td>
			</tr>
			
			<tr>
				<td>控制器模式</td>
				<td>
					<el-radio-group v-model="basicForm.basicInfo.controllerMode">
						<el-radio :label="0">AEC</el-radio>
						<el-radio :label="1" >手动模式</el-radio>
					</el-radio-group>
				</td>
				<td>限束器</td>
				<td>
					<el-radio-group v-model="basicForm.basicInfo.haveBeamLimitingDevice">
						<el-radio :label="true">有</el-radio>
						<el-radio :label="false">无</el-radio>
					</el-radio-group>
				</td>
			</tr>

			<tr>
				<td width="10%">设备使用信息</td>
				<td width="40%" colspan="3">
					临床常用管电压：<el-input v-model="basicForm.basicInfo.clinicalCommonUse_kv" style="width: 100px"/>；
					临床常用管电流时间积：<el-input v-model="basicForm.basicInfo.clinicalCommonUse_mA" style="width: 100px"/>；
					<br/>
					<br/>
					年工作量=<el-input v-model="basicForm.basicInfo.unitSecondOfZhang" style="width: 100px;"/>
					s/张×<el-input v-model="basicForm.basicInfo.unitZhangOfYear" style="width: 100px"/>
					张/年÷3600=<el-input v-model="basicForm.basicInfo.unitHourOfYear" style="width: 100px"/>
					h/年
				</td>
			</tr>
		</table>
	</div>
</template>

<script>

export default {
  name: "basicTable06",
  data() {
    return {
			form: {}
    };
  },
  props: {
		// 基本信息数据
    basicForm: {
			type: Object,
      default: () => {
				return {}
			},
    },
		// 状态
    lrstatus: {
			type: String,
      default: "",
    },
  },
	watch: {
		'basicForm.basicInfo': {
			deep: true,
			handler(val) {
				if (this.basicForm.basicInfo.unitSecondOfZhang && this.basicForm.basicInfo.unitZhangOfYear) {
					this.basicForm.basicInfo.unitHourOfYear = (this.basicForm.basicInfo.unitSecondOfZhang * this.basicForm.basicInfo.unitZhangOfYear / 3600).toFixed(2)
				}
			},
		}
	},
	created() {
		console.log('基本情况(06)', this.basicForm)
	}
};
</script>

<style lang="scss" scoped>
@import '../content.scss';
</style>